<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_AddHospital.aspx.cs" Inherits="Admin_Ad_AddHospital" %>

<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>
<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>
<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Add Hospital</title>
    <link href="include\styles.css" rel="stylesheet" />

    <script src="../JScript/gen_validatorv2.js">
    </script>

</head>
<body>
    <form id="Adduser" runat="server">
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="TABLE1" onclick="return TABLE1_onclick()">
            <!-- Masthead starts from here-->
            <uc1:Ad_header ID="Ad_header1" runat="server" />
            <!-- Masthead ends here-->
            <tr>
                <td>
                </td>
                <td style="width: 953px">
                    <table width="716" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="150" valign="top">
                                <!-- Left panel starts from here-->
                                <uc2:Ad_left ID="Ad_left1" runat="server" />
                                <!-- Left panel ends from here-->
                            </td>
                            <td width="15" valign="top">
                                <img src="../images/spacer.gif" width="15" height="1" />
                            </td>
                            <td width="551" valign="top">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tblborder">
                                    <tr>
                                        <td width="2%" height="35">
                                        </td>
                                        <td width="96%" class="normalblack_12" align="center">
                                            <b>
                                                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                                            </b>
                                        </td>
                                        <td width="2%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="15">
                                        </td>
                                        <td align="center" class="normalblack_12">
                                            <asp:Label ID="Label2" runat="server" Text="Label" ForeColor="Green" Visible="False"></asp:Label>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="200">
                                        </td>
                                        <td valign="top" class="normalblack_12" align="center">
                                            <table width="80%" align="center" class="normalgrey_12">
                                                <tr>
                                                    <td align="right">
                                                        Hospital Name
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txthospitalname" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                                        <span style="color: red">*</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        Country
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td> <asp:Panel ID="Panel1" runat="server" Height="50px" Width="235px" Font-Size="XX-Small" BorderWidth="1px" BorderStyle="Solid">
                                                        <table>
                                                       
                                                       
                                                        <tr>
                                                        <td colspan="2">Either add a new country or select from list </td>
                                                        </tr>
                                                            <tr>
                                                                 <td>
                                                                    <asp:TextBox ID="txtCountry" runat="server" MaxLength="100" ReadOnly="false" Width="120px"></asp:TextBox>
                                                                                                                                     
                                                                </td>
                                                                <td>
                                                                    <asp:DropDownList ID="ddlCountry" runat="server" AutoPostBack="True" Width="100px"  OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                  </td>
                                                                
                                                            </tr>
                                                           
                                                           
                                                        </table>
                                                         </asp:Panel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        Phone
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtPhone" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                                        <span style="color: red">*</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        Fax
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtFax" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                                        <%--<span style="color: red">*</span>--%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        Email
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtEmail" runat="server" MaxLength="40" Width="200px"></asp:TextBox>
                                                        <span style="color: red">*</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        Website
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtWebsite" runat="server" MaxLength="40" Width="200px"></asp:TextBox>
                                                        <span style="color: red">*</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        About
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtAbout" runat="server" MaxLength="450" TextMode="MultiLine" Height="50px"
                                                            Width="200px"></asp:TextBox>
                                                        <span style="color: red">*</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        Address
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtaddress" runat="server" MaxLength="1000" Width="200px"></asp:TextBox>
                                                        &nbsp;&nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" style="vertical-align: top">
                                                        Status
                                                    </td>
                                                    <td style="width: 12px">
                                                        :
                                                    </td>
                                                    <td>
                                                        <asp:RadioButtonList ID="chkstatus" runat="server">
                                                            <asp:ListItem Value="0">None</asp:ListItem>
                                                            <asp:ListItem Value="1">Mark As Featured Hospital</asp:ListItem>
                                                            <asp:ListItem Value="2">Mark As Latest Hospital</asp:ListItem>
                                                            <asp:ListItem Value="3">Mark As Top Hospital</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                    </td>
                                                    <td style="width: 12px">
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                    </td>
                                                    <td style="width: 12px">
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                                                        &nbsp;&nbsp;
                                                        <asp:Button ID="Button2" runat="server" Text="Cancel" CausesValidation="False" OnClick="Button2_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="20">
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 30px">
                </td>
            </tr>
            <tr>
                <td height="1" bgcolor="#CCCCCC">
                    <img src="../images/spacer.gif" width="1" height="1" alt="" />
                </td>
                <td bgcolor="#CCCCCC" style="width: 953px">
                    <img src="../images/spacer.gif" width="1" height="1" alt="" />
                </td>
                <td bgcolor="#CCCCCC">
                    <img src="../images/spacer.gif" width="1" height="1" alt="" />
                </td>
            </tr>
            <tr>
                <td height="20" colspan="3">
                </td>
            </tr>
            <!-- Bottom starts from here-->
            <uc3:Ad_footer ID="Ad_footer1" runat="server" />
            <!-- Bottom ends here-->
        </table>
    </div>
    </form>
    <iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js"
        src="../JScript/ipopeng.htm" scrolling="no" frameborder="0" style="visibility: visible;
        z-index: 999; position: absolute; top: -500px; left: -500px;"></iframe>

    <script>
        //You should create the validator only after the definition of the HTML form


        var frmvalidator = new Validator("Adduser", "btnSubmit");

        frmvalidator.addValidation("txthospitalname", "req", "Please Enter Hospital Name.");
        //frmvalidator.addValidation("txtCountry", "req", "Please Enter Country Name.");
        frmvalidator.addValidation("txtPhone", "req", "Please Enter Phone Number.");
        //frmvalidator.addValidation("txtFax", "req", "Please Enter Fax Number.");
        frmvalidator.addValidation("txtWebsite", "req", "Please Enter WebSite.");
        frmvalidator.addValidation("txtEmail", "req", "Please Enter Email.");
        frmvalidator.addValidation("txtAbout", "req", "Please Enter About.");
        frmvalidator.addValidation("txtaddress", "req", "Please Enter Address.");


        frmvalidator.addValidation("txtAbout", "maxlength=450", "Address Maximum Length is Only 450 Characters");
        frmvalidator.addValidation("txtaddress", "maxlength=1000", "Address Maximum Length is Only 1000 Characters");

        frmvalidator.addValidation("txtEmail", "email");
        function TABLE1_onclick() {

        }

    </script>

</body>
</html>
